home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 4 / ETO Development Tools 4.iso / Essentials / MacApp Documentation / MacApp.TECH$ Archives / 1991 / Jan 91 / MacApp.Tech$ 1⁄18⁄91 / 2735-Re Cloning An Object-Jan91 < prev    next >
Encoding:
Text File  |  1991-03-06  |  682 b   |  23 lines  |  [TEXT/GEOL]

  1. Item    6050891                         18-Jan-91        14:32PST
  2.  
  3. From:   BERDAHL                         Amoco Tech, Eric Berdahl,VAR
  4.  
  5. To:     BBSF.DEV                        Babcock & Brown, Michael Harper,AST
  6.         MACAPP.TECH$                    MacApp Technical
  7.  
  8. ------------------------------------------------------------------------------
  9.  
  10. Sub:    Re: Cloning An Object
  11.  
  12. Michael,
  13.  
  14. As a matter of C++ etiquette, it is better to return a TObject* instead of a
  15. TDerived*.  It may be easier to code if you happen to do
  16. bDerived = aDerived->Clone(), but it isn’t really considered “nice.”
  17.  
  18. Humbly opinionated,
  19. Eric Berdahl
  20. Amoco Technology Company
  21. AppleLink:  BERDAHL
  22.  
  23.